package console;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;

public class Echo {

	/**
	 * @param args
	 * @throws IOException 
	 */
	public static void main(String[] args) {
		
	}
	
	public static void copy(String inFile, String outFile) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(inFile)));
		BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(outFile)));
		String in = br.readLine();
		while(in != null){
			bw.write(in);
			bw.flush();
			in = br.readLine();
		}
	}

}
